package com.gk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.pojo.TbMemberLevel;

import com.eight.vo.TbMemberLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: GK
 * @date: 2023/2/28 10:40
 * @version:No1.0
 */
@Mapper
public interface TbMemberLevelDao extends BaseMapper<TbMemberLevel> {
    /**
     * 条件分页查询
     * @param page 分页
     * @param tbMemberLevelVo 条件
     * @return 分页数据
     */
    Page<TbMemberLevel> selectAll(Page<TbMemberLevel> page, @Param(value = "tbMemberLevelVo") TbMemberLevelVo tbMemberLevelVo);

    /**
     * 查询所有的会员等级
     * @return
     */
    List<TbMemberLevel> selectName();
}

